import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
import Home from '../components/Home.vue';
import Profile from '../components/Profile.vue';
import todolist from '../components/todolist.vue';
const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Profile',
    name: 'Profile',
    component: Profile
  },
  {
    path: '/todolist',
    name: 'ToDoList',
    component: todolist
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;